package com.suyang.syt.dao.interfaces;

import java.util.List;

import com.suyang.syt.model.UserGroup;

public interface UserGroupDao extends BaseDao<UserGroup> {

	/** 根据用户IDS删除该用户所有的组信息 */
	public void deleteUserGroups(String userIds);

	public List<UserGroup> listUserGroups(long userId);

	public List<UserGroup> listGroupUsers(long groupId);

	public void deletes(String ids);

	public long countUserGroup(long userId, long groupId);

	public long countUserRole(String groupIds);

	public void clearUsers(String groupIds);

}
